package SmartFurniture.Entity;

import SmartFurniture.Interface.SmartDevice;

public class Speaker implements SmartDevice {
    private String Speakername; //音箱名称
    private String SoundRecognition; //语音识别模块
    private String Wifi; //WiFi模块
    private String SoundEffect; //音效模块
    private String Helper; //语音助手模块

    public SmartDevice clone() throws CloneNotSupportedException {
        try {
            return (SmartDevice) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }

    @Override
    public String getName() {
        return getSpeakername();
    }

    @Override
    public String getInfo() {
        return  "音箱信息：{" +
                "语音识别模块='" + SoundRecognition + '\'' +
                ", Wifi模块='" + Wifi + '\'' +
                ", 音效模块='" + SoundEffect + '\'' +
                ", 语音助手='" + Helper + '\'' +
                '}';
    }

    public void setSpeakername(String name) {
        this.Speakername = name;
    }

    public void setSoundRecognition(String SoundRecognition) {
        this.SoundRecognition = SoundRecognition;
    }

    public void setWifi(String Wifi) {
        this.Wifi = Wifi;
    }

    public void setSoundEffect(String SoundEffect) {
        this.SoundEffect = SoundEffect;
    }

    public void setHelper(String Helper) {
        this.Helper = Helper;
    }

    public String getSpeakername() {
        return Speakername;
    }

    public String getSoundRecognition() {
        return SoundRecognition;
    }

    public String getWifi() {
        return Wifi;
    }

    public String getSoundEffect() {
        return SoundEffect;
    }

    public String getHelper() {
        return Helper;
    }
}
